// ======================================================
//     Copyright (c) 2009 METARACE  All rights reserved.
//    
//     The use and distribution terms for this software are contained in the file
//     named license.txt, which can be found in the root of this distribution.
//     By using this software in any fashion, you are agreeing to be bound by the
//     terms of this license.
//    
//     You must not remove this notice, or any other, from this software.
// ======================================================
using System;

namespace Toulr.Util.Logging.log4netIntegration
{
    #region

    

    #endregion

    public class ThreadContextStack : IContextStack
    {
        private readonly log4net.Util.ThreadContextStack log4netStack;

        public ThreadContextStack(log4net.Util.ThreadContextStack log4netStack)
        {
            this.log4netStack = log4netStack;
        }

        #region IContextStack Members

        public int Count
        {
            get { return this.log4netStack.Count; }
        }

        public void Clear()
        {
            this.log4netStack.Clear();
        }

        public string Pop()
        {
            return this.log4netStack.Pop();
        }

        public IDisposable Push(string message)
        {
            return this.log4netStack.Push(message);
        }

        #endregion
    }
}